﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NHibernateSample.Domain.Entities
{
    public class Product
    {
        public virtual int ProductId { get; set; }
        //版本控制
        public virtual int Version { get; set; }
        public virtual string Name { get; set; }
        public virtual float Cost { get; set; }
        //多对多关系：Product属于多个Orders
        public virtual IList<Order> Orders { get; set; }
    }
}
